package com.example.testspringes.mianshi;

/**
 * @Description: //TODO
 * @ProjectName: testspringes
 * @Package: com.example.testspringes.mianshi
 * @Author: FX
 * @CreateDate: 2019/2/26 8:24
 * @Version: 1.0
 * Copyright: Copyright (c) 2019
 */
public class SingleTon {
    private static volatile SingleTon singleTon;
    public SingleTon(){

    }
    public static SingleTon getInstance(){
        if(singleTon==null){
            synchronized (SingleTon.class){
                if (singleTon==null){
                    singleTon=new SingleTon();
                }
            }
        }
        return singleTon;
    }
}
